package domain;

import java.util.Date;
import java.util.Set;

import org.apache.struts.action.ActionForm;

public class ArticleType extends ActionForm{
	private int id;
	private String name="";
	private Date createtime=new Date();
	private String content="";
	private Set<Article> articles;
	
	public ArticleType() {
	}

	public ArticleType(int id, String name, Date createtime, String content) {
		this.content = content;
		this.createtime = createtime;
		this.id = id;
		this.name = name;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}

	public Set<Article> getArticles() {
		return articles;
	}

	public void setArticles(Set<Article> articles) {
		this.articles = articles;
	}

}
